class Solution {
public:
    string firstPalindrome(vector<string>& words) {
        for (auto & s : words) {
            string p = s;
            reverse(s.begin(), s.end());
            if (p == s) return s;
        }
        return "";
    }
};
